﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Windows;
using System.Windows.Threading;

namespace ResourceBlender_Express {
    /// <summary>
    /// Processes command line args and handles generic exceptions.
    /// </summary>
    public partial class App : Application {
        protected override void OnStartup(StartupEventArgs e) {
            WinMain frm = new WinMain();
            frm.CommandLineArgs = e.Args;
            frm.ShowDialog();
            base.OnStartup(e);
        }

        private void App_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e) {
            WinUnhandledException dlg = new WinUnhandledException(e.Exception);
            dlg.ShowDialog();
        }
    }
}
